package com.adou.demo1;

import java.util.Random;

public class RandomDemo {
    public static void main(String[] args) {
        int random = (int) (Math.random() * 100);
        System.out.println(random);

        // 生成65-100随机数
        Random r = new Random();
        int random1 = r.nextInt(35) + 65;
        System.out.println(random1);

    }
}
